import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { environment } from 'src/environments/environment';

@NgModule({
    declarations: [],
    imports: [CommonModule]
})
export class ConfigModule {
    public uploadDocumentBaseUrl: string = environment.baseUrl + 'web/document/documentUpload'; //上传文件接口地址
    public uploadUpdateDocumentBaseUrl: string = environment.baseUrl + 'document/documentUpdate'; //上传更新接口地址
    public uploadBaseUrl: string = environment.baseUrl + 'fileUpload'; //上传图片接口地址
    public importBaseUrl: string = environment.baseUrl + 'staffDev/excelImportAddStaffDev'; //导入接口地址
    public pageSize = 15; //每页显示记录数
    public modalWidth = '800px'; //弹出框宽度
    public modalContentHeight = { maxHeight: '70vh', overflow: 'auto' }; //弹出内容高度
    //lottie动画全局配置
    public lottieConfig: any = {
        path: '/assets/data/loading.json',
        width: '100px',
        height: '100px'
    };
    public scrollValue = { x: '', y: window.innerHeight - 443 + 'px' }; //table的滚动区域样式
    public noPageScrollValue = { x: '', y: window.innerHeight - 38 + 'px' }; //table的滚动区域样式
    public noPageAndTitleScrollValue = { x: '', y: window.innerHeight - 8 + 'px' }; //table的滚动区域样式
    public loadingIcon =
        '<i class="anticon anticon-loading"><svg viewBox="0 0 1024 1024" fill="currentColor" width="1em" height="1em" class="anticon-spin" data-icon="loading" aria-hidden="true"><path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"></path></svg></i>';
}
